package test;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.*;

import org.junit.Test;

import semanticlib.SemType;


import ycompiler.YCompiler;
import ycompiler.YCompilerConstants;
import ycompiler.Start;

public class Playground {
    private static class StackedMap extends HashMap<String, HashMap<java.util.List<SemType>, Object>> {
        private StackedMap next;

        private StackedMap(StackedMap next) {
            this.next = next;
        }

        private Object lookup(String symbol, ArrayList<SemType> signature) {
            Object result = get(symbol);
            if (result == null && next != null)
                return next.lookup(symbol, signature);
            else
                return result;
        }
    }

    public static void main(String[] args) {
	Playground play = new Playground();
	
	HashMap<List<SemType>, String> a = new HashMap<java.util.List<SemType>, String>();
	List<SemType> list = Arrays.asList(SemType.BOOL,SemType.INT);
	List<SemType> list2 = Arrays.asList(SemType.BOOL,SemType.INT);
	List<SemType> list3 = Arrays.asList(SemType.INT,SemType.BOOL);
	a.put(list, "yoyoyomotherufkca");
	
	System.out.println(a.get(list3));
	System.out.println(a.get(list2));
	
    }
}
